package com.baida.retail.tasksystem.enums;

import io.swagger.annotations.Api;

public enum ErrorCode {

    SUCCESS(1000, "Success"),
    USER_NOT_EXISTS(1001, "用户不存在"),
    USER_ACCOUNT_IS_DISABLED(1002, "用户账号已禁用"),
    INVALID_SMS_CODE(1003, "验证码错误"),
    ORDER_ITEM_NOT_EXISTS(1004, "商品记录不存在"),
    ORDER_ITEM_SORTED(1005, "该商品已完成分拣"),
    ORDER_ITEM_NOT_MATCH(1006, "商品不匹配"),
    TASK_NOT_EXISTS(1007, "任务不存在"),
    TASK_STATUS_ERROR(1008, "任务状态异常"),
    SORTATION_NOT_FINISHED(1009, "有商品分拣未完成"),
    DUPLICATE_USER_SESSION(1010, "用户重复连接"),

    BIZ_FAIL(4001, "请求业务失败"),
    SYSTEM_ERROR(5001, "系统异常");

    private int id;
    private String msg;

    ErrorCode(int id, String msg) {
        this.id = id;
        this.msg = msg;
    }

    public int getId() {
        return id;
    }

    public String getMsg() {
        return msg;
    }
}
